package com.woniu.defecttracking.service;

import com.woniu.defecttracking.dto.AddAccountDto;
import com.woniu.defecttracking.dto.PageAccountDto;
import com.woniu.defecttracking.entity.Account;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.defecttracking.param.AddAccountParam;
import com.woniu.defecttracking.param.FindAccountParam;
import com.woniu.defecttracking.param.UpdateAccountParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tiangle
 * @since 2021-12-31
 */
public interface AccountService extends IService<Account> {
    PageAccountDto findAccount(FindAccountParam findAccountParam);

    AddAccountDto addAccount(AddAccountParam addProjectParam);

    boolean updateAccount(UpdateAccountParam updateProjectParam);

    boolean deleteAccount(List<Integer> ids);

    List<Account> findProjectId(Integer projectId);

    boolean toSuper(Integer id);

    boolean isSuper();
}
